package com.hzdl.house_mgr.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
public class ClientLoginController {

    @RequestMapping("cLoginInit")
    public String cLogin(){
        return "client/login";
    }

    @RequestMapping("cRegister")
    public String cRegister(){
        return "client/register";
    }

    @RequestMapping("cLoginOut")

    public String cLoginOut(HttpServletRequest req){
        req.getSession().removeAttribute("session_user");
        return "client/login";
    }

}
